package org.csu.goodpartner.service;

import org.csu.goodpartner.VO.ItemVO;
import org.csu.goodpartner.common.CommonResponse;
import org.csu.goodpartner.entity.Item;

import java.util.List;

public interface ItemService {
    //发布商品
    CommonResponse publish(ItemVO itemVO);
    //更改商品信息
    CommonResponse update(ItemVO itemVO);
    //下架商品
    CommonResponse out(int shopId, int itemId);
    //查看商品
    CommonResponse getAllItems(int shopId);
    //模糊查询
    CommonResponse<List<Item>> like(int shopId, String like);
}
